Page({
  data: {
    counter: 0
  },

  onClick() {
    this.setData({
      counter: this.data.counter + 1
    })
  },

  onPullDownRefresh() {
    setTimeout(() => {
      this.setData({ counter: 0 })
      // 停止下拉刷新
      wx.stopPullDownRefresh()
    }, 1000)
  }
})